<template>
  <div class="app">
    <header>
      <router-view name="header"></router-view>
    </header>
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <router-view name="footer"></router-view>
    </footer>
  </div>
</template>
<script setup></script>
<style lang="scss">
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box; // 开启怪异盒模型
}
  .app{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  main{
    flex: 1;
    height: 100vh;
    overflow: auto;
  }
</style>
